package cn.iocoder.yudao.module.shop.dal.mysql.order;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.shop.dal.dataobject.order.ShopOrderItemDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;
@Mapper
public interface ShopOrderItemMapper extends BaseMapperX<ShopOrderItemDO> {

    default List<ShopOrderItemDO> selectListByOrderId(Collection<Long> orderIds) {
        return selectList(ShopOrderItemDO::getOrderId, orderIds);
    }

    default List<ShopOrderItemDO> selectListByOrderId(Long orderId) {
        return selectList(ShopOrderItemDO::getOrderId, orderId);
    }
}
